.class public Lcom/instagram/android/fragment/cg;
.super Lcom/instagram/e/b/b;
.source "FindFacebookFriendsPromptFragment.java"

# interfaces
.implements Lcom/instagram/a/b;


# instance fields
.field private a:Landroid/os/Handler;

.field private final b:Lcom/instagram/android/fragment/cn;


# direct methods
.method public constructor <init>()V
    .locals 2

    .prologue
    .line 31
    invoke-direct {p0}, Lcom/instagram/e/b/b;-><init>()V

    .line 35
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/fragment/cg;->a:Landroid/os/Handler;

    .line 36
    new-instance v0, Lcom/instagram/android/fragment/cn;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lcom/instagram/android/fragment/cn;-><init>(Lcom/instagram/android/fragment/cg;Lcom/instagram/android/fragment/ch;)V

    iput-object v0, p0, Lcom/instagram/android/fragment/cg;->b:Lcom/instagram/android/fragment/cn;

    .line 127
    return-void
.end method

.method private X()V
    .locals 3

    .prologue
    .line 89
    invoke-static {}, Lcom/instagram/android/g/b;->a()Lcom/facebook/a/b;

    move-result-object v0

    .line 90
    invoke-virtual {v0}, Lcom/facebook/a/b;->b()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 92
    invoke-virtual {v0}, Lcom/facebook/a/b;->c()Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/instagram/android/fragment/cg;->a(Ljava/lang/String;)V

    .line 100
    :goto_0
    return-void

    .line 95
    :cond_0
    sget-object v1, Lcom/instagram/android/g/i;->a:[Ljava/lang/String;

    iget-object v2, p0, Lcom/instagram/android/fragment/cg;->b:Lcom/instagram/android/fragment/cn;

    invoke-virtual {v0, p0, v1, v2}, Lcom/facebook/a/b;->a(Landroid/support/v4/app/Fragment;[Ljava/lang/String;Lcom/facebook/a/e;)V

    goto :goto_0
.end method

.method private Y()V
    .locals 3

    .prologue
    .line 103
    new-instance v0, Lcom/instagram/ui/a/a;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/cg;->j()Landroid/support/v4/app/j;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/instagram/ui/a/a;-><init>(Landroid/content/Context;)V

    sget v1, Lcom/facebook/ba;->prompt_when_user_wants_to_skip_finding_friends_during_signup:I

    invoke-virtual {v0, v1}, Lcom/instagram/ui/a/a;->a(I)Lcom/instagram/ui/a/a;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->find_friends:I

    new-instance v2, Lcom/instagram/android/fragment/ck;

    invoke-direct {v2, p0}, Lcom/instagram/android/fragment/ck;-><init>(Lcom/instagram/android/fragment/cg;)V

    invoke-virtual {v0, v1, v2}, Lcom/instagram/ui/a/a;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->yes_skip_this_step:I

    new-instance v2, Lcom/instagram/android/fragment/cj;

    invoke-direct {v2, p0}, Lcom/instagram/android/fragment/cj;-><init>(Lcom/instagram/android/fragment/cg;)V

    invoke-virtual {v0, v1, v2}, Lcom/instagram/ui/a/a;->c(ILandroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/ui/a/a;->b()Landroid/app/Dialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Dialog;->show()V

    .line 118
    return-void
.end method

.method private Z()V
    .locals 3

    .prologue
    .line 121
    new-instance v0, Lcom/instagram/e/b/a/a;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/cg;->m()Landroid/support/v4/app/r;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/instagram/e/b/a/a;-><init>(Landroid/support/v4/app/r;)V

    new-instance v1, Lcom/instagram/android/fragment/bx;

    invoke-direct {v1}, Lcom/instagram/android/fragment/bx;-><init>()V

    invoke-virtual {p0}, Lcom/instagram/android/fragment/cg;->i()Landroid/os/Bundle;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/instagram/e/b/a/a;->a(Landroid/support/v4/app/Fragment;Landroid/os/Bundle;)Lcom/instagram/e/b/a/a;

    move-result-object v0

    const-string v1, "next"

    invoke-virtual {v0, v1}, Lcom/instagram/e/b/a/a;->e(Ljava/lang/String;)Lcom/instagram/e/b/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/e/b/a/a;->e()V

    .line 125
    return-void
.end method

.method static synthetic a(Lcom/instagram/android/fragment/cg;)V
    .locals 0
    .parameter

    .prologue
    .line 31
    invoke-direct {p0}, Lcom/instagram/android/fragment/cg;->X()V

    return-void
.end method

.method static synthetic a(Lcom/instagram/android/fragment/cg;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 31
    invoke-direct {p0, p1}, Lcom/instagram/android/fragment/cg;->a(Ljava/lang/String;)V

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 2
    .parameter

    .prologue
    .line 175
    new-instance v0, Lcom/instagram/android/fragment/hz;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/cg;->m()Landroid/support/v4/app/r;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/instagram/android/fragment/hz;-><init>(Landroid/support/v4/app/r;)V

    invoke-virtual {v0, p1}, Lcom/instagram/android/fragment/hz;->b(Ljava/lang/String;)Lcom/instagram/android/fragment/hz;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->find_friends_item_facebook_friends:I

    invoke-virtual {p0, v1}, Lcom/instagram/android/fragment/cg;->b(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/android/fragment/hz;->c(Ljava/lang/String;)Lcom/instagram/android/fragment/hz;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/fragment/hz;->c()Lcom/instagram/android/fragment/hz;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/fragment/hz;->e()V

    .line 180
    return-void
.end method

.method static synthetic b(Lcom/instagram/android/fragment/cg;)V
    .locals 0
    .parameter

    .prologue
    .line 31
    invoke-direct {p0}, Lcom/instagram/android/fragment/cg;->Y()V

    return-void
.end method

.method static synthetic c(Lcom/instagram/android/fragment/cg;)V
    .locals 0
    .parameter

    .prologue
    .line 31
    invoke-direct {p0}, Lcom/instagram/android/fragment/cg;->Z()V

    return-void
.end method

.method static synthetic d(Lcom/instagram/android/fragment/cg;)Landroid/os/Handler;
    .locals 1
    .parameter

    .prologue
    .line 31
    iget-object v0, p0, Lcom/instagram/android/fragment/cg;->a:Landroid/os/Handler;

    return-object v0
.end method


# virtual methods
.method public a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 2
    .parameter
    .parameter
    .parameter

    .prologue
    .line 42
    sget v0, Lcom/facebook/ax;->fragment_find_facebook_friends_prompt:I

    const/4 v1, 0x0

    invoke-virtual {p1, v0, p2, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    return-object v0
.end method

.method public a()Lcom/instagram/a/a;
    .locals 1

    .prologue
    .line 184
    new-instance v0, Lcom/instagram/android/fragment/cl;

    invoke-direct {v0, p0}, Lcom/instagram/android/fragment/cl;-><init>(Lcom/instagram/android/fragment/cg;)V

    return-object v0
.end method

.method public a(IILandroid/content/Intent;)V
    .locals 2
    .parameter
    .parameter
    .parameter

    .prologue
    .line 164
    const/4 v0, -0x1

    if-ne p2, v0, :cond_0

    .line 165
    invoke-static {}, Lcom/instagram/android/g/b;->a()Lcom/facebook/a/b;

    move-result-object v0

    .line 168
    iget-object v1, p0, Lcom/instagram/android/fragment/cg;->b:Lcom/instagram/android/fragment/cn;

    invoke-virtual {v0, v1}, Lcom/facebook/a/b;->a(Lcom/facebook/a/e;)V

    .line 169
    invoke-virtual {v0, p1, p2, p3}, Lcom/facebook/a/b;->a(IILandroid/content/Intent;)V

    .line 171
    :cond_0
    invoke-super {p0, p1, p2, p3}, Lcom/instagram/e/b/b;->a(IILandroid/content/Intent;)V

    .line 172
    return-void
.end method

.method public d(Landroid/os/Bundle;)V
    .locals 3
    .parameter

    .prologue
    .line 59
    invoke-super {p0, p1}, Lcom/instagram/e/b/b;->d(Landroid/os/Bundle;)V

    .line 66
    :try_start_0
    invoke-virtual {p0}, Lcom/instagram/android/fragment/cg;->j()Landroid/support/v4/app/j;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/nux/SignedOutFragmentActivity;

    invoke-virtual {v0}, Lcom/instagram/android/nux/SignedOutFragmentActivity;->l()V
    :try_end_0
    .catch Ljava/lang/ClassCastException; {:try_start_0 .. :try_end_0} :catch_0

    .line 70
    :goto_0
    invoke-virtual {p0}, Lcom/instagram/android/fragment/cg;->j()Landroid/support/v4/app/j;

    move-result-object v0

    sget v1, Lcom/facebook/aw;->button_find_friends:I

    invoke-virtual {v0, v1}, Landroid/support/v4/app/j;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v1, Lcom/instagram/android/fragment/ch;

    invoke-direct {v1, p0}, Lcom/instagram/android/fragment/ch;-><init>(Lcom/instagram/android/fragment/cg;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 77
    invoke-virtual {p0}, Lcom/instagram/android/fragment/cg;->j()Landroid/support/v4/app/j;

    move-result-object v0

    sget v1, Lcom/facebook/aw;->button_skip:I

    invoke-virtual {v0, v1}, Landroid/support/v4/app/j;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v1, Lcom/instagram/android/fragment/ci;

    invoke-direct {v1, p0}, Lcom/instagram/android/fragment/ci;-><init>(Lcom/instagram/android/fragment/cg;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 84
    invoke-virtual {p0}, Lcom/instagram/android/fragment/cg;->j()Landroid/support/v4/app/j;

    move-result-object v0

    sget v1, Lcom/facebook/aw;->button_skip:I

    invoke-virtual {v0, v1}, Landroid/support/v4/app/j;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "<u>"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    sget v2, Lcom/facebook/ba;->skip:I

    invoke-virtual {p0, v2}, Lcom/instagram/android/fragment/cg;->b(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "</u>"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/text/Html;->fromHtml(Ljava/lang/String;)Landroid/text/Spanned;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 86
    return-void

    .line 67
    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method public d_()Ljava/lang/String;
    .locals 1

    .prologue
    .line 225
    const-string v0, "register_flow_find_friends_facebook_prompt"

    return-object v0
.end method

.method public w()V
    .locals 1

    .prologue
    .line 53
    const/4 v0, 0x1

    sput-boolean v0, Lcom/instagram/android/nux/SignedOutFragmentActivity;->s:Z

    .line 54
    invoke-super {p0}, Lcom/instagram/e/b/b;->w()V

    .line 55
    return-void
.end method

.method public x()V
    .locals 1

    .prologue
    .line 47
    const/4 v0, 0x0

    sput-boolean v0, Lcom/instagram/android/nux/SignedOutFragmentActivity;->s:Z

    .line 48
    invoke-super {p0}, Lcom/instagram/e/b/b;->x()V

    .line 49
    return-void
.end method
